package com.tianjs.lambda;

import java.util.Arrays;
import java.util.List;

/**
 * lambda测试
 * @author carrot.jiang
 * @date 2018年11月15日  新建
 */
public class App {
    public static void main( String[] args ){
       String [] names = {"jiang guiqiang qiang","yan zan xin","wang hong"};
       List<String> players = Arrays.asList(names);
       //第一种用法
       players.forEach(player -> System.out.println(player+";"));
       //第二种双冒号用法
       players.forEach(System.out::println);
    }
}
